import service from '@/utils/request'

// @Tags GameList
// @Summary 创建GameList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameList true "创建GameList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameList/createGameList [post]
export const createGameList = (data) => {
  return service({
    url: '/gameList/createGameList',
    method: 'post',
    data
  })
}

// @Tags GameList
// @Summary 删除GameList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameList true "删除GameList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameList/deleteGameList [delete]
export const deleteGameList = (data) => {
  return service({
    url: '/gameList/deleteGameList',
    method: 'delete',
    data
  })
}

// @Tags GameList
// @Summary 删除GameList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GameList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameList/deleteGameList [delete]
export const deleteGameListByIds = (data) => {
  return service({
    url: '/gameList/deleteGameListByIds',
    method: 'delete',
    data
  })
}

// @Tags GameList
// @Summary 更新GameList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameList true "更新GameList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameList/updateGameList [put]
export const updateGameList = (data) => {
  return service({
    url: '/gameList/updateGameList',
    method: 'put',
    data
  })
}

// @Tags GameList
// @Summary 用id查询GameList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameList true "用id查询GameList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameList/findGameList [get]
export const findGameList = (params) => {
  return service({
    url: '/gameList/findGameList',
    method: 'get',
    params
  })
}

// @Tags GameList
// @Summary 分页获取GameList列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GameList列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameList/getGameListList [get]
export const getGameListList = (params) => {
  return service({
    url: '/gameList/getGameListList',
    method: 'get',
    params
  })
}
